package com.xl.service.impl;

import com.spring.anotation.Component;
import com.springmvc.anotation.Service;
import com.xl.pojo.User;
import com.xl.service.UserService;

import java.util.ArrayList;
import java.util.List;

@Service
@Component
public class UserServiceImpl implements UserService {
    @Override
    public List<User> findUsers(String name) {
        {
            List<User> users = new ArrayList<User>();
            users.add(new User(1, "张三", "12345"));
            users.add(new User(1, "李四", "12345"));
            return users;
        }
    }
}
